package com.showcai.module;


import com.showcai.tools.json.JsonHandler;


public class SyncResult {
public  static  final String STATUS_SUCC="0";
public  static  final String STATUS_FAIL="1";
public  static  final String MSG_SUCC="成功";
public  static  final String MSG_FAIL="失败";
public SyncResult(String status,String msg){
     this.status=status;
     this.msg=msg;
     this.timestamp=System.currentTimeMillis();
}

  /*  {
  "status": 0,
  "msg": "成功",
  "timestamp": 1534822548890
    }*/

    /**
     * 反馈状态
     */

    private String status;

    private Byte flag;

    public Byte getFlag() {
        return flag;
    }

    public void setFlag(Byte flag) {
        this.flag = flag;
    }

    /**
     * 反馈信息
     */
    private String msg;
    private Long timestamp;


    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public String toJson() {
        return JsonHandler.objectToJson(this);
    }





    

}
